package cn.hzc.fortess.system.service;

import cn.hzc.fortess.system.entity.Dept;
import cn.hzc.fortess.system.entity.Lessee;
import cn.hzc.fortess.system.node.ZTreeNode;
import cn.hzc.fortess.system.page.Pagination;
import cn.hzc.fortess.system.search.DeptSearch;

import java.util.List;


public interface DeptService {

    void add(Dept entity);

    void update(Dept entity);

    void delete(Integer id);

    Dept getById(Integer id);

    Integer getRootDeptByLessee(Integer lesseeId);

    Pagination getPage(DeptSearch search);

    List<ZTreeNode> tree();


    void createDeptRootByLessee(Lessee lessee);

}
